home *** CD-ROM | disk | FTP | other *** search
- Path: news.halcyon.com!usenet
- From: normanb@halcyon.com (Norm Bryar)
- Newsgroups: comp.lang.c++
- Subject: Re: C++ gurus, I have a question for you!
- Date: Mon, 19 Feb 1996 18:33:06 GMT
- Organization: Northwest Nexus Inc.
- Message-ID: <4gafnv$84m@news.halcyon.com>
- References: <31281804.687F@iglou.com>
- NNTP-Posting-Host: blv-pm12-ip19.halcyon.com
- X-Newsreader: Forte Free Agent 1.0.82
-
- This sounds alittle strange; what exactly is it you're trying to
- accomplish? Variable a isn't a global, I assume. If it's an
- automatic, you know if it's been initialized because you know whether
- the flow of control has entered the { } enclosing the variable
- definition. You're trying to decide whether to define a local 'a'
- based on whether another 'a' exists or not within an outer namespace?
-
- --Norm
-
-
- "Abe L. Getchell" <panther@iglou.com> wrote:
-
- >How is it possible to check if a variable has been
- >initialized yet? If I do 'if ( !a ) { int a = 1 }' I get
- >an error message. Please, any help would be great. Reply
- >to the group or in mail. Thanks in advance!
-
- >Abe L. Getchell
-
-
-